import request from '@/utils/request'

// 修改
export function updateOutbill(data) {
  return request({
    url: '/operatingCenter/outBill/updateByPrimaryKeySelective',
    method: 'POST',
    data
  })
}

// 新增
export function insertOutbill(data) {
  return request({
    url: '/operatingCenter/outBill/insertSelective',
    method: 'POST',
    data
  })
}

// 修改查询
export function selectOutbill(params) {
  return request({
    url: '/operatingCenter/outBill/selectByPrimaryKey',
    method: 'POST',
    params
  })
}

// 删除
export function deleteOutbill(params) {
  return request({
    url: '/operatingCenter/outBill/deleteByPrimaryKey',
    method: 'post',
    params
  })
}

// 条件分页查询
export function getOutbillList(params) {
  return request({
    url: '/operatingCenter/outBill/selectPage',
    method: 'POST',
    params
  })
}

// 外联单位名称查询
export function selectCompany(params) {
  return request({
    url: '/operatingCenter/outBill/selectCompany',
    method: 'POST',
    params
  })
}

// 外联项目名称查询
export function selectProject(params) {
  return request({
    url: '/operatingCenter/outBill/selectProject',
    method: 'POST',
    params
  })
}

// 查詢收款人（也就是经办人）
export function selectOperator(params) {
  return request({
    url: '/projectContrac/operator',
    method: 'POST',
    params
  })
}
